// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 获取 线索报送  - 主动报送 提交 分页  POST */
export async function pageCuesActive(options?: { [key: string]: any }) {
  return request<BaseResponseBean.responsePage<CuesActiveData.ActivePage[]>>('/cues/active/page', {
    method: 'POST',
    data: options || {},
  });
}

/** 保存 线索报送  - 主动报送 提交  POST */
export async function saveCuesActive(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/active/save', {
    method: 'POST',
    data: options || {},
  });
}

/** 获取 线索报送  - 主动报送 详情  POST */
export async function selectCuesActive(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<CuesActiveData.ActiveDetails>>('/cues/active/select', {
    method: 'POST',
    data: options || {},
  });
}

/** 保存 获取 指派 树形 组织  - 主动报送 获取 推送单位  POST */
export async function initSaveActiveTreeAssignOrganization(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AdminOrganizationData.Organization[]>>(
    '/cues/active/save/init/treeAssignOrganization',
    {
      method: 'POST',
      data: options || {},
    },
  );
}


/**获取 选题线索 报送线索 组织 列表 POST */
export async function activeAnalysis(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<CuesActiveData.Analysis[]>>(
    '/cues/active/analysis',
    {
      method: 'POST',
      data: options || {},
    },
  );
}



/** 主动报送  获取回执详情  POST */
export async function receiptRecordActive(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<Array<UserData.Organization>>>('/cues/active/readDetail', {
    method: 'POST',
    data: options || {},
  });
}

/** 主动报送  获取回执详情  POST */
export async function receiptRecordSubmit(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<Array<UserData.Organization>>>('/cues/submit/readDetail', {
    method: 'POST',
    data: options || {},
  });
}

/** 获取 线索报送  - 主动报送线索录用  POST */
export async function adoptRecord(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<CuesActiveData.ActiveDetails>>('/cues/adopt/save', {
    method: 'POST',
    data: options || {},
  });
}
